Law and socialism